<?php

namespace App\Models\Biz;

use Illuminate\Database\Eloquent\Model;
use Laracasts\Presenter\PresentableTrait;

class Record extends Model
{
    use PresentableTrait;

    protected $table = 'biz_records';

    protected $presenter = 'App\Http\Presenters\RecordPresenter';

    protected $guarded = array();

    public $timestamps = false;

    public function activity()
    {
        return $this->belongsTo('App\Models\Mgt\Activity', 'aid', 'id');
    }


    public function user()
    {
        return $this->belongsTo('App\Models\Mgt\User', 'uid', 'id');
    }

}